Add back/forward mouse button bindings in eww
authorStefan Kangas <stefan@marxist.se>
Tue, 9 Nov 2021 17:07:30 +0000 (18:07 +0100)
committerStefan Kangas <stefan@marxist.se>
Tue, 9 Nov 2021 17:40:43 +0000 (18:40 +0100)
* lisp/net/eww.el (eww-mode-map): Add mouse back/forward button
bindings.  These bindings are the same as in Firefox and other
graphical browsers.

lisp/net/eww.el

index 61c7801b1027a2d2279c4aa02c8c5806c1200501..70ebc1d2ec6f07eb8fb7b277e5c8d70260f9cac8 100644 (file)
@@ -1076,6 +1076,9 @@ the like."
   [(meta n)] #'eww-next-bookmark
   [(meta p)] #'eww-previous-bookmark
 
+  [(mouse-8)] #'eww-back-url
+  [(mouse-9)] #'eww-forward-url
+
   :menu '("Eww"
           ["Exit" quit-window t]
           ["Close browser" quit-window t]